package act.hpx.demo.springmvc.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import act.hpx.demo.springmvc.dao.UserMapper;
import act.hpx.demo.springmvc.pojo.User;

@Service("userService")
public class UserServiceImpl implements UserService {
	@Resource
	private UserMapper userMapper;
	
	public User getUserById(int id) {
		return userMapper.selectByPrimaryKey(id);
	}

}
